package cc.linker.steplink.crm.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface GroupDao {

    List<Map<String, Object>> list(@Param("orgId")String orgId);

    void insertGroup(Map<String, Object> map);

    void editGroup(Map<String, Object> map);

    void delGroup(String id);

    List<Map<String, String>> getGroupName(String orgId);

    Map<String, Object> getGroup(String id);

    List<String> countGroup(Map<String, Object> map);

    Map<String, String> getGroupInclude(String groupId);

    List<Map<String, String>> getAllIncludes();

    void updateGroupNum(Map map);

    void delAll();

    void insertBatch(Map map);

    int judgeGroupNameRepeat(Map map);

    void delGroupRel(String id);

    List<Map<String, Object>> openList(String orgCode);

    List<String> userOpenIdList(String groupIds);

    List<Map<String, Object>> getOrgGroup(Map<String, Object> map);

    void delGroupRelation(@Param("groupId") String groupId);

    List<Map<String,Object>> getAllGroupList();
}
